<?php
import('ORG.Util.Function');
import('@.Org.CommonTool');

class RegionAction extends Action {
	/**
	 * 获取地址
	 * Enter description here ...
	 */   
	public function region_list(){
		
		$type   				= 	!empty($_REQUEST['type'])   ? intval($_REQUEST['type'])   : 0;
		$parent					= 	!empty($_REQUEST['parent']) ? intval($_REQUEST['parent']) : 0;
		
		$arr['regions'] 		= 	get_regions($type, $parent);
		$arr['type']    		= 	$type;
		$arr['target']  		= 	!empty($_REQUEST['target']) ? stripslashes(trim($_REQUEST['target'])) : '';
		$arr['target']  		= 	htmlspecialchars($arr['target']);
		
		$this->ajaxReturn($arr);
	}
	
	
	
	
}